package edu.cdnu.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 数据库 dictionary映射类
 * 
 * @author ASUS AsingZ
 */
@TableName("dictionary")
public class DictionaryPojo {
	@TableId
	private Integer id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 父id，所属的上一级的Id
	 */
	private Integer parentId;
	/**
	 * 描述
	 */
	private String decription;
	
	public DictionaryPojo() {}
	public DictionaryPojo(Integer id, String name, Integer parentId, String decription) {
		super();
		this.id = id;
		this.name = name;
		this.parentId = parentId;
		this.decription = decription;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public String getDecription() {
		return decription;
	}
	public void setDecription(String decription) {
		this.decription = decription;
	}
	
	@Override
	public String toString() {
		return "DictionaryPojo [id=" + id + ", name=" + name + ", parentId=" + parentId + ", decription=" + decription
				+ "]";
	}
	
}
